/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import java.io.Serializable;
public class Question implements Serializable {
	public Question() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == com.pancho.ORMConstants.KEY_QUESTION_RESPONSE) {
			return ORM_response;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int idQuest;
	
	private String question;
	
	private com.pancho.QuestForm questForm;
	
	private java.util.Set ORM_response = new java.util.HashSet();
	
	private void setIdQuest(int value) {
		this.idQuest = value;
	}
	
	public int getIdQuest() {
		return idQuest;
	}
	
	public int getORMID() {
		return getIdQuest();
	}
	
	public void setQuestion(String value) {
		this.question = value;
	}
	
	public String getQuestion() {
		return question;
	}
	
	public void setQuestForm(com.pancho.QuestForm value) {
		if (this.questForm != value) {
			com.pancho.QuestForm lquestForm = this.questForm;
			this.questForm = value;
			if (value != null) {
				questForm.setQuestionidQuest(this);
			}
			else {
				lquestForm.setQuestionidQuest(null);
			}
		}
	}
	
	public com.pancho.QuestForm getQuestForm() {
		return questForm;
	}
	
	private void setORM_Response(java.util.Set value) {
		this.ORM_response = value;
	}
	
	private java.util.Set getORM_Response() {
		return ORM_response;
	}
	
	public final com.pancho.ResponseSetCollection response = new com.pancho.ResponseSetCollection(this, _ormAdapter, com.pancho.ORMConstants.KEY_QUESTION_RESPONSE, com.pancho.ORMConstants.KEY_RESPONSE_QUESTIONIDQUEST, com.pancho.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getIdQuest());
	}
	
}
